package models

type SysClass struct {
	Model
	Name                string `json:"name" gorm:"type:varchar(20);not null;comment:班级名称"`
	ClassType           string `json:"class_type" gorm:"type:varchar(10);not null;comment:班级类型"`
	Class               string `json:"class" gorm:"type:varchar(10);comment:班级分类"`
	DeptId              int    `json:"dept_id" gorm:"type:int(5);comment:教学点"`
	Count               int    `json:"count" gorm:"comment:班级人数"`
	HeadMaster          int    `json:"head_master" gorm:"type:int(10);not null;comment:班主任"`
	HeadMasterName      string `json:"head_master_name" gorm:"type:varchar(50);comment:班主任名称"`
	RegionalManagerId   int    `json:"regional_manager_id" gorm:"type:int(10);comment:大区经理ID"`
	RegionalManager     string `json:"regional_manager"  gorm:"type:varchar(50);comment:大区经理"`
	CityLeaderId        int    `json:"city_leader_id"  gorm:"type:int(10);comment:城市负责人ID"`
	CityLeader          string `json:"city_leader" comment:"城市负责人" gorm:"type:varchar(50);comment:城市负责人"`
	AdmissionsOfficerId int    `json:"admissions_officer_id"  gorm:"type:int(10);comment:招生负责人ID"`
	AdmissionsOfficer   string `json:"admissions_officer" gorm:"type:varchar(50);comment:招生负责人"`
	Status              int    `json:"status" gorm:"type:tinyint(1);default:1;comment:班级状态，1-运行中，2-结业"`
	ControlBy
	ModelTime
}

func (SysClass) TableName() string {
	return "sys_class"
}
